| 1. | For instance , the following syntax enables assertion checking for the 例如,下面的语法对 |
| 2. | Now , run the program with assertion checking enabled 现在,请带有启用断言检查运行该程序: |
| 3. | For instance , the following syntax will enable assertion checking for the 例如,下面的语法将对 |
| 4. | Option , to enable assertion checking 选项来启用断言检查。 |
| 5. | Because these assertions check for changes in the model , not the view 因为这些断言只是在模型中,而不是在视图中检查发生的更改。 |
| 6. | Running the program with assertion checking enabled produces the following error report 带启用断言检查运行程序产生下面的错误报告: |
| 7. | Because assertion checking is disabled by default no assertion error is detected 由于在缺省情况下禁用了断言检查,因此不会检测到任何断言错误。 |
| 8. | The following simple example walks you through the necessary steps to add assertion checking to your program 下面的简单示例向您介绍了向程序中添加断言检查的一些必要步骤。 |
| 9. | Assertion checking is disabled by default , so you ll also have to explicitly enable this facility at run time 缺省情况下,会禁用断言检查,因此在运行时您也要显式地启用这一功能。 |
| 10. | Assertion checking is like exception handling , but no exception is thrown when an assertion fails . instead , an 断言检查就象异常处理,但是当断言失败时,却不会抛出异常,而会抛出一个 |